<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:cc="http://java.sun.com/jsf/composite">

<cc:interface componentType="br.com.sig.presentation.component.InputContainer">
	<cc:attribute name="id" required="true" />
	<cc:attribute name="disabled" required="false" default="false"/>
	<cc:attribute name="label" required="true" />
	<cc:attribute name="value" required="true" />
	<cc:attribute name="list" required="true" />
	<cc:attribute name="width" required="false" />
	<cc:attribute name="must" required="false" />
	<cc:attribute name="required" required="false" default="false"/>	
</cc:interface>

<cc:implementation xmlns:sig="http://java.sun.com/jsf/composite/components">

	<sig:decorate id="decorate#{cc.attrs.id}" label="#{cc.attrs.label}">
		<h:inputText value="#{cc.attrs.value}" disabled="true" required="#{cc.attrs.required}" style="width: #{cc.attrs.width}" />
	   	<p:commandLink
	   		action="#{cc.attrs.list.startModal()}" oncomplete="PF('dialogModal#{cc.attrs.id}').show();"
	   		partialSubmit="true" process="@this" update=":#{cc.attrs.id}:formModal#{cc.attrs.id}:panelListModal#{cc.attrs.id}"
	   		disabled="#{cc.attrs.disabled}">
	       	<h:graphicImage library="images" name="lupa.png" />
		</p:commandLink>				
	</sig:decorate>
	 
</cc:implementation>
</html>